package com.welsy.stats.business
{
	import mx.rpc.Fault;
	import mx.rpc.events.FaultEvent;
	import mx.rpc.events.ResultEvent;
	import mx.rpc.soap.mxml.WebService;	
	import mx.rpc.AbstractOperation;
	import com.adobe.cairngorm.business.ServiceLocator;
	import com.adobe.cairngorm.business.Responder;
	import mx.collections.ArrayCollection;
	import flash.utils.setTimeout;	
	import com.welsy.iter.vo.IterVO;
	import com.welsy.user.model.UserModelLocator;
	import mx.rpc.IResponder;
	import mx.rpc.AsyncToken;
		

	/**
	 * @version	$Revision: 1.1 $
	 */
	public class GetPublishItersDelegate
	{
		public function GetPublishItersDelegate( responder : IResponder )
		{		
			this.service = ServiceLocator.getInstance().getWebService("iterServices") as WebService;
			this.responder = responder;
		}
		
		public function getPublishIters(authorId : String) : void
		{	
			var o:AbstractOperation = service.getOperation("GetPublishIters");
			o.arguments.GetPublishItersRequest.AuthorID = UserModelLocator.getInstance().authorId;

			var token : AsyncToken = service.GetPublishIters();
			token.addResponder(responder);
		}	
	
		private var responder : IResponder;
		private var service : WebService;
	}

}